date_get_last_errors
Alias for DateTime::getLastErrors - Get warning and error information
The date_get_last_errors()
function returns a warning/error found when parsing the date string.
Returns warnings and errors when parsing date strings:
<?php date_create ( "aecubdjpoi%&&/" ) ; print_r ( date_get_last_errors ( ) ) ; ?>
Try it yourself
date_get_last_errors ( ) ;